using Crawler.DomainServices.DataServices;
using FluentNHibernate.Cfg.Db;

namespace Crawler.DataServices.Persistence.nHibernate
{
	internal class SqlServer2008SessionFactoryProvider : SessionFactoryProvider
	{

		public SqlServer2008SessionFactoryProvider(IDataServicesConfiguration configuration) : base(configuration)
		{
		}

		protected override IPersistenceConfigurer GetMoviesDbConnectionString()
		{
			return MsSqlConfiguration.MsSql2008.ConnectionString(Configuration.SqlServerMoviesConnStr);
		}

		protected override IPersistenceConfigurer GetCrawlDbConnectionString()
		{
			return MsSqlConfiguration.MsSql2008.ConnectionString(Configuration.SqlServerCrawlConnStr
				);
		}
	}
}